package com.ruoyi.bussiness.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务-动态对象 sys_business_dynamic
 *
 * @author ruoyi
 * @date 2023-12-12
 */
public class SysBusinessDynamic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动态主键 */
    private Long dynamicId;

    /** 动态类别ID */
    @Excel(name = "分类")
    private String dynamicTypeName;
    private Long dynamicTypeId;

    /** 标题 */
    @Excel(name = "标题")
    private String dynamicTitle;

    /** 展示顺序 */
    private Integer orderNum;

    /** 子标题 */
    private String dynamicSubTitle;

    /** 编者 */
    @Excel(name = "编者")
    private String dynamicFeed;

    /** 审核 */
    private String dynamicRevieww;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pushTime;

    /** 来源 */
    private String dynamicSource;

    /** 动态内容 */
    private String dynamicContent;

    /** 附件 */
//    @Excel(name = "附件")
    private String files;

    /** 发布状态 */
    @Excel(name = "发布状态", readConverterExp = "0=草稿,1=已发布,2=已撤回")
    private String status;

    /** 是否置顶（0否 1是） */
    private String isTop;

    /** 是否置底（0否 1是） */
    private String isBottom;

    /**移动类型 1-上移 2-下移 **/
    private  String moveType;

    /**移动类型 1-置顶 2-置底 **/
    private String pinType;

    private List<Long> excludeIds;

    public String getMoveType() {
        return moveType;
    }

    public void setMoveType(String moveType) {
        this.moveType = moveType;
    }

    public String getPinType() {
        return pinType;
    }

    public void setPinType(String pinType) {
        this.pinType = pinType;
    }

    public String getDynamicTypeName() {
        return dynamicTypeName;
    }

    public void setDynamicTypeName(String dynamicTypeName) {
        this.dynamicTypeName = dynamicTypeName;
    }

    public void setDynamicId(Long dynamicId)
    {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId()
    {
        return dynamicId;
    }
    public void setDynamicTypeId(Long dynamicTypeId)
    {
        this.dynamicTypeId = dynamicTypeId;
    }

    public Long getDynamicTypeId()
    {
        return dynamicTypeId;
    }
    public void setDynamicTitle(String dynamicTitle)
    {
        this.dynamicTitle = dynamicTitle;
    }

    public String getDynamicTitle()
    {
        return dynamicTitle;
    }
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum()
    {
        return orderNum;
    }
    public void setDynamicSubTitle(String dynamicSubTitle)
    {
        this.dynamicSubTitle = dynamicSubTitle;
    }

    public String getDynamicSubTitle()
    {
        return dynamicSubTitle;
    }
    public void setDynamicFeed(String dynamicFeed)
    {
        this.dynamicFeed = dynamicFeed;
    }

    public String getDynamicFeed()
    {
        return dynamicFeed;
    }
    public void setDynamicRevieww(String dynamicRevieww)
    {
        this.dynamicRevieww = dynamicRevieww;
    }

    public String getDynamicRevieww()
    {
        return dynamicRevieww;
    }
    public void setPushTime(Date pushTime)
    {
        this.pushTime = pushTime;
    }

    public Date getPushTime()
    {
        return pushTime;
    }
    public void setDynamicSource(String dynamicSource)
    {
        this.dynamicSource = dynamicSource;
    }

    public String getDynamicSource()
    {
        return dynamicSource;
    }
    public void setDynamicContent(String dynamicContent)
    {
        this.dynamicContent = dynamicContent;
    }

    public String getDynamicContent()
    {
        return dynamicContent;
    }
    public void setFiles(String files)
    {
        this.files = files;
    }

    public String getFiles()
    {
        return files;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setIsTop(String isTop)
    {
        this.isTop = isTop;
    }

    public String getIsTop()
    {
        return isTop;
    }
    public void setIsBottom(String isBottom)
    {
        this.isBottom = isBottom;
    }

    public String getIsBottom()
    {
        return isBottom;
    }

    public List<Long> getExcludeIds() {
        return excludeIds;
    }

    public void setExcludeIds(List<Long> excludeIds) {
        this.excludeIds = excludeIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("dynamicId", getDynamicId())
                .append("dynamicTypeId", getDynamicTypeId())
                .append("dynamicTitle", getDynamicTitle())
                .append("orderNum", getOrderNum())
                .append("dynamicSubTitle", getDynamicSubTitle())
                .append("dynamicFeed", getDynamicFeed())
                .append("dynamicRevieww", getDynamicRevieww())
                .append("pushTime", getPushTime())
                .append("dynamicSource", getDynamicSource())
                .append("dynamicContent", getDynamicContent())
                .append("files", getFiles())
                .append("status", getStatus())
                .append("isTop", getIsTop())
                .append("isBottom", getIsBottom())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
